//
//  ErrorResponse.swift
//  swiftBase
//
//  Created by 郭艳波 on 2018/3/7.
//  Copyright © 2018年 郭艳波. All rights reserved.
//

import Foundation
import ObjectMapper

class ErrorResponse: NSObject, Mappable {
    var code: Int!
    var message: String!
    
    required init?(map: Map) {
        if map.JSON["code"] == nil { return nil }
        if map.JSON["message"] == nil { return nil }
    }
    
    func mapping(map: Map) {
        code    <- map["code"]
        message <- map["message"]
    }
}
